package SortedLinkList;

/**
 * Created by sunwei on 2017/10/10
 * Time:14:34
 */
public class SortedListApp {
    public static void main(String[] args) {
        SortedList sortedList = new SortedList();
        sortedList.insert(20);
        sortedList.insert(40);
        sortedList.insert(60);

        System.out.println("显示有序链表内的元素：");
        sortedList.displayList();
        System.out.println("再插入几个元素");
        sortedList.insert(10);
        sortedList.insert(70);
        sortedList.insert(80);
        sortedList.displayList();
        sortedList.remove();
        System.out.println("移除一个元素后有序链表里面的元素为：");
        sortedList.displayList();
    }

}
